package com.foreknow.demo9;

public class AImpl implements A {
    @Override
    public void eat() {
        System.out.println("eat......");
    }

    public static void main(String[] args) {
        A a = new AImpl(); //父类的引用指向子类的对象
        a.eat();
        System.out.println(A.MAX_VALUE); //访问接口中的常量
    }
}
